export interface HttpResponse<T = any> {
    config: {
      url?: string;
      method?: string;
      headers?: Record<string, string>;
      // 其他配置项...
    };
    data: ServerResponse<T>;
    headers: Record<string, string>;
    status: number;
    statusText: string;
    request?: XMLHttpRequest;  // 如果需要保留 XHR 实例
  }
  
  export interface ServerResponse<T = any> {
    data: T;
    msg: string;
    state: number;
    timestamp?: string;
  }